// pages/joke/joke.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    data_list: [
      {"content": "测试","updatetime": "2018-3-3"},
      { "content": "测试", "updatetime": "2018-3-3" }
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var thatData = this;
    wx.request({
      url: 'https://v.juhe.cn/joke/content/text.php?key=2ca3e19979fadf2279ac6a036669f5ad&page=1&pagesize=30',
      success:function(result){
        // console.log(result.data.result.data)
        thatData.setData({
          data_list: result.data.result.data
        })
      }

    })
  }
})